package com.wuxiaoqin.server.controller;


import com.wuxiaoqin.server.service.IMenuClassService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2021-10-29
 */
@RestController
@RequestMapping("/menu")
public class MenuClassController {

    @Autowired
    private IMenuClassService iMenuClassService;

    @ApiOperation("获取子菜单")
    @GetMapping("/getClass")
    public Map<String, Object> getMenuClass(){
        Map<String, Object> listObj =  iMenuClassService.getMenuClass();
        return listObj;
    }


}
